//
//  OrderDetailViewController.m
//  CPetro
//
//  Created by ggx on 2017/3/8.
//  Copyright © 2017年 高广校. All rights reserved.
//

#import "OrderDetailViewController.h"


#import "HomeCell.h"
#import "UserCenterCell.h"//
@interface OrderDetailViewController ()
{
}
@end

@implementation OrderDetailViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItemTitle = @"订单详情";
    // Do any additional setup after loading the view from its nib.
}
-(void)refreshView{
//    HomeOrderEntity *t = (HomeOrderEntity *)[HomeOrderEntity getObjectFromDic:@{}];
    
    [super refreshView];
    [self.baseData addObjectsFromArray:@[
                                         @{@"text":@"订单号",@"value":@"12515551445"},
                                         @{@"text":@"配送员",@"value":@"张大小姐"},
                                         @{@"text":@"联系电话",@"value":@"1821561351"},
  @{@"text":@"车牌号",@"value":@"V-13654"}]];
}
-(void)loadMore{
    
}
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return [self.baseData count];
}
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    static NSString *cellidenti = @"HomeCell";
    UserCenterCell *cell = [tableView dequeueReusableCellWithIdentifier:cellidenti];
    if (!cell) {
        cell = [[UserCenterCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellidenti];
    }
    cell.userDic = self.baseData[indexPath.row];
    return cell;
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
